
package com.jf.cloud.api.feign;


import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.order.bo.EsOrderBO;
import com.jf.cloud.common.order.dto.OrderSearchDTO;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * 订单搜索
 *
 * @author zz
 * @date 2021/02/05
 */
@FeignClient(value = "jfcloud-search", contextId = "esOrder")
public interface EsOrderFeignClient {
    /**
     * 分页获取订单信息
     *
     * @param orderId
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/esOrder/updateOrder")
    ServerResponseEntity<Void> updateOrder(@RequestBody Long orderId);


    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/esOrder/getUndeliveryOrder")
    List<EsOrderBO> getUndeliveryOrder(@RequestBody OrderSearchDTO orderSearchDTO);


}
